{% load staticfiles %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
 	<link href="{% static "acacia/img/database_24.ico" %}" rel="icon" type="image/x-ico" />
	<title>{% block title %}Acacia Datastore{% endblock %}</title>
	{% block style %}
    <link href="{% static "acacia/css/bootstrap.min.css" %}" rel="stylesheet">
    <style>
		#footer > .navbar {padding-top: 10px; min-height:32px !important}
    </style>
	{% endblock %}
	{% block meta %}{% endblock %}
	{% block script %}
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="{% static "acacia/js/bootstrap.min.js" %}"></script>
	{% endblock %}
  </head>
{% csrf_token %}
  <body>
	<nav class="navbar navbar-default" role="navigation">
	  <div class="container-fluid">
	    {% block navbar-header %}
	    <div class="navbar-header">
	      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
	        <span class="sr-only">Toggle navigation</span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </button>
	      {% block brandname %}Acacia Data{% endblock brandname %}
	    </div>
	    {% endblock navbar-header %}
	
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      {% block navbar %} 
	      <ul class="nav navbar-nav">
	        <li class="active"><a href="#">Link</a></li>
	        <li><a href="#">Link</a></li>
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li><a href="#">Action</a></li>
	            <li><a href="#">Another action</a></li>
	            <li><a href="#">Something else here</a></li>
	            <li class="divider"></li>
	            <li><a href="#">Separated link</a></li>
	            <li class="divider"></li>
	            <li><a href="#">One more separated link</a></li>
	          </ul>
	        </li>
	      </ul>
	      <form class="navbar-form navbar-left" role="search">
	        <div class="form-group">
	          <input type="text" class="form-control" placeholder="Search">
	        </div>
	        <button type="submit" class="btn btn-default">Submit</button>
	      </form>
	      {% endblock navbar %}
	      {% block navbar-auth %}
	      <ul class="nav navbar-nav navbar-right">
	        
	        <li><a href="/admin/data/{% block admin_url %}{% endblock admin_url %}">Beheer</a></li>
	        {% if user.is_authenticated %}
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}
	          <b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li><a href="/accounts/logout">Uitloggen</a></li>
	            <li><a href="/accounts/password/change">Wachtwoord veranderen</a></li>
	          </ul>
	        </li>
          	{% else %}
	        <li><a href="/accounts/login">Inloggen</a></li>
          	{% endif %}
	      </ul>
	      {% endblock navbar-auth %}
	    </div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
    {% block content %}
    {% endblock content %}
    {% block footer %}
	<div id="footer" class="container">
	    <nav class="navbar navbar-default navbar-fixed-bottom">
	        <div class="navbar-inner navbar-content-center">
    			{% block footer-text %}
	            <p class="text-muted text-center credit"><a href="http://www.acaciawater.com">Acacia Water</a> • Jan van Beaumontstraat 1 • 2805 RN Gouda • The Netherlands • Tel: +31 (0)182 - 686424 • Mail: <a href="mailto:info@acaciawater.com">info@acaciawater.com</a>.</p>
    			{% endblock footer-text %}
	        </div>
	    </nav>
	</div>
    {% endblock footer %}
  </body>
</html>
